package com.qst.crop.service;

import com.github.pagehelper.PageInfo;
import com.qst.crop.entity.Order;

public interface OrderService {
    PageInfo<Order> selectAll(Integer pageNum);

    PageInfo<Order> selectByExamble(String key,Integer pageNum);

//    PageInfo<Order> selectGoodsByKeys(String keys, Integer pageNum, Object o);

    PageInfo<Order> selectGoodsByKeys(String keys, Integer pageNum, String name);

    Order selectById(Integer id);

    PageInfo<Order> selectByType(String type, Integer pageNum);

    void add(Order order);

    void update(Order order);

    void delete(Integer id);

    PageInfo<Order> selectAllNeeds(Integer pageNum);

    PageInfo<Order> selectNeedsByKeys(String keys, Integer pageNum, String o);

    PageInfo<Order> searchMyNeedsByKeys(String keys, Integer pageNum, String name);
}
